﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace QuickSQL
{
    public partial class SqlOptions : Form
    {
        public string SelectedConnectionString
        {
            get
            {
                return this.databaseConnection1.GetConnectionString();
            }
        }
        public SqlOptions()
        {
            InitializeComponent();
            databaseConnection1.AutoLoadDatabase = false;
            databaseConnection1.DatabaseOk += new Action<string>(databaseConnection1_DatabaseOk);
        }

        void databaseConnection1_DatabaseOk(string database)
        {
            this.DialogResult = System.Windows.Forms.DialogResult.OK;
            this.Close();
        }
    }
}
